﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DtoFw.Query
{
    public class PartyDto
    {
    }

    public class EvidenceToAreaDto
    {
        public string CaseNo { get; set; }
        public string CaseName { get; set; }
        public string AreaId { get; set; }
        public string EvidenceName { get; set; }
        public string EvidenceNo { get; set; }
        public string Status { get; set; }
        public string Location { get; set; }
    }


    public class WarnCheckoutDto : PageDto
    {

        /// <summary>
        /// 物品ID
        /// </summary>
        public string EvidenceId { get; set; } = string.Empty;


        /// <summary>
        /// 物品编号
        /// </summary>
        public string EvidenceNo { get; set; } = string.Empty;

        /// <summary>
        /// 物品名称
        /// </summary>
        public string EvidenceName { get; set; }

        /// <summary>
        /// Rfid
        /// </summary>
        public string RFID { get; set; }

        /// <summary>
        /// 案件编号
        /// </summary>
        public string CaseNo { get; set; } = string.Empty;

        public string InvNo { get; set; } = string.Empty;

        /// <summary>
        /// 案件名称
        /// </summary>
        public string CaseName { get; set; } = string.Empty;

        public DateTime? CreateTime { get; set; }
        public long? CaseId { get; set; }

        /// <summary>
        /// 是否解决：0-解决，1-未解决
        /// </summary>
        public int? IsResolved { get; set; }
    }


    public class SourceEviDto
    {

        /// <summary>
        /// 物品编号
        /// </summary>
        public string EvidenceNo { get; set; } = string.Empty;

        /// <summary>
        /// 物品名称
        /// </summary>
        public string EvidenceName { get; set; } = string.Empty;
        /// <summary>
        /// 案件编号
        /// </summary>
        public string CaseNo { get; set; } = string.Empty;
        public string Status { get; set; } = string.Empty;

        public DateTime? CaseTime { get; set; }

        /// <summary>
        /// 案件名称
        /// </summary>
        public string CaseName { get; set; } = string.Empty;
        /// <summary>
        /// 物品编号
        /// </summary>
        public string HostUserOrganName { get; set; } = string.Empty;

        /// <summary>
        /// 物品编号
        /// </summary>
        public string HostUserName { get; set; } = string.Empty;

        /// <summary>
        /// 勘验编号
        /// </summary>
        public string InspectionNo { get; set; } = string.Empty;

        /// <summary>
        /// 机构ID
        /// </summary>
        public string OrganId { get; set; } = string.Empty;

        public DateTime CreateTime { get; set; }

        //录入人
        public string Creator { get; set; }

        public List<SourceDto> Data { get; set; } = new List<SourceDto>();

    }



    public class SourceDto
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 时间
        /// </summary>
        public DateTime? Time { get; set; }

        public string V1 { get; set; }
        public string V2 { get; set; }
        public string V3 { get; set; }
        public string V4 { get; set; }
        public string V5 { get; set; }

    }



    public class RfidDto
    {
        public int sequence { get; set; }
        public string commandType { get; set; }
        public Params @params { get; set; }
        public string version { get; set; }
        public string command { get; set; }
    }

    public class Params
    {
        public string timeStamp { get; set; }
        public Opresultitem[] opResultItems { get; set; }
        public string deviceId { get; set; }
    }

    public class Opresultitem
    {
        public int rssi { get; set; }
        public int antennaId { get; set; }
        public int inOutType { get; set; }
        public string epc { get; set; }
        public string tId { get; set; }
        public float frequency { get; set; }
    }


    /// <summary>
    /// RFID数据
    /// </summary>
    public class RfidData
    {
        public string epc { get; set; }
        public int rssi { get; set; }
        public string tId { get; set; }
        public int inOutType { get; set; }
    }



    public class ReaderRfidDto
    {
        public bool success { get; set; }
        public int errorCode { get; set; }
        public string message { get; set; }
        public RfidData data { get; set; }
    }

    public class RfidReaderDto
    {
        public long evidenceId { get; set; }
        public string epc { get; set; }
    }



    public class TaskInfoDto
    {
        public int taskId { get; set; }
        public string taskName { get; set; }
        public int type { get; set; }
        public List<Taskdata> taskData { get; set; }
    }

    public class Taskdata
    {
        public string evidenceName { get; set; }
        public string address { get; set; }
        public string epc { get; set; }
        public int registerState { get; set; }
    }


    public class WarnCheckoutRespDto
    {
        public List<WarnCheckoutResp> list { get; set; }
    }
    public class WarnCheckoutResp
    {
        public string date { get; set; }
        public DateTime dt { get; set; }
        public string evidenceNo { get; set; }
        public string evidenceName { get; set; }
    }
}

